package ar.com.fiuba.domain.api;

import ar.com.fiuba.domain.Word;
import ar.com.fiuba.domain.exceptions.DomainException;

/**
 * Interface for a word factory.
 * 
 */
public interface WordFactory {

	/**
	 * Method to make a word from a String valeu.
	 * 
	 * @param value
	 *            the String value of the word.
	 * @return the new Word with the value passed.
	 * @throws DomainException
	 *             if there's a problem with the creation of the word.
	 */
	public Word makeWord(String value) throws DomainException;

}
